<template>
	<view style="padding-bottom: 150rpx;">
		<u-sticky bgColor="#a3d8f5">
			<view class="mainpadding" :style="{paddingTop:menutop+'rpx'}">
				<view class="flexleft">
					<image src="@/static/image/system/hsz.png" class="hszclass" mode=""></image>
					<view class="xiaobai fonweight" style="font-size: 35rpx;">红十字基金会“孤寡老人大病救助基金”</view>
				</view>
				<view class="margin_top flexbetween">
					<u-icon name="arrow-left" color="#fff" size="24" @click="backpage()"></u-icon>
					<view class="xiaobai fonweight sanshier" style="font-size: 32rpx;">医疗申请详情</view>
					<image src="@/static/image/system/list.png" mode="" class="topliclass" @click="toplistfn"></image>
				</view>
			</view>
		</u-sticky>
		<view class="mainpadding ffffff">
			<view class="flexbetween">
				<view class="ershiba xiaohei fonweight">审核状态</view>
				<view class="xiaohuang ershiba" v-show="dataAll.status==1">待审核</view>
				<view class="xiaolv ershiba" v-show="dataAll.status==2">审核通过</view>
				<view class="xiaohong ershiba" v-show="dataAll.status==3">审核拒绝</view>
				<view class="xiaohui ershiba" v-show="dataAll.status==4">补充材料</view>
			</view>
		</view>
		<view class="ffffff mainpadding margin_top">
			<view class="ershiba xiaohei fonweight">审核备注</view>
			<view class="ershiba xiaohong margin_top">{{dataAll.bz}}</view>
		</view>
		<view class="ffffff mainpadding_top">
			<view class="ershiba xiaohei fonweight">患者信息
				<text class="ershiba xiaohong fonweight">*</text>
			</view>
			<view class="margin_top xiahuaxian flexleft">
				<view class="ershiba xiaohei margin_right2">姓名</view>
				<input placeholder="请输入" type="text" disabled="" v-model="dataAll.name" />
			</view>
			<view class="margin_top xiahuaxian flexleft">
				<view class="ershiba xiaohei margin_right2">性别</view>
				<u-radio-group v-model="dataAll.sex" placement="row" circle>
					<u-radio activeColor="#d41c19" disabled :customStyle="{marginRight: '30rpx'}" label="男" name="1"></u-radio>
					<u-radio activeColor="#d41c19" disabled label="女" name="2"></u-radio>
				</u-radio-group>
			</view>
			<!-- <view class="margin_top xiahuaxian flexleft">
				<view class="ershiba xiaohei margin_right2">年龄</view>
				<input placeholder="请输入" type="number" v-model="idCard" />
			</view> -->
		
			<view class="margin_top xiahuaxian flexleft">
				<view class="ershiba xiaohei margin_right2">手机号（+86）</view>
				<input placeholder="请输入手机号" disabled type="number" v-model="dataAll.tel" />
			</view>	
			<view class="margin_top flexleft">
				<view class="ershiba xiaohei margin_right2">家庭住址</view>
				<input placeholder="请输入" disabled type="text" v-model="dataAll.jtaddress" />
			</view>
		</view>
		
		<view class="ffffff mainpadding margin_top">
			<view class="ershiba xiaohei fonweight">检查结果
				<text class="ershiba xiaohong fonweight">*</text>
			</view>
			<view class="flexleft flex_wrap">
				<view class="flexcenter tpbox " v-for="(item,index) in dataAll.jcjg_images_text" :key="index" @click="lbtpriview(index,dataAll.jcjg_images_text)">
					<image class="tjtp" :src="item" mode=""></image>
				</view>
			</view>
		</view>
		<view class="ffffff mainpadding margin_top">
			<view class="ershiba xiaohei fonweight">症状/病情
				<text class="ershiba xiaohong fonweight">*</text>
			</view>
			<view class="ershiba xiaohei margin_top">{{dataAll.bqdes}}</view>
		</view>
		
		<view class="gudingdb mainpadding" v-if="dataAll.status==4">
			<view class="bigbtn" @click="jumpdetail('/pages/mine/yiliaoxgsq?id=',listid)">重新申请</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				// #ifdef H5
				menutop: 80,
				// #endif
				// #ifdef MP-WEIXIN
				menutop: 0,
				// #endif	
				dataAll:{},
				listid:""
			}
		},
		onLoad(options) {
			// #ifdef MP-WEIXIN
			this.menutop = uni.getMenuButtonBoundingClientRect().top * 2
			// #endif
			this.listid = options.id
		},
		onShow() {
			this.getDetail()
		},
		methods: {
			getDetail(){
				httpRequest.request('/api/user/ylapplyDetail', 'GET', {
					id: this.listid,
				}).then(res => {
					this.dataAll = res.data
				}).catch(err => {})
			},
		}
	}
</script>

<style>

</style>
